69 WDT_A_hold(WDT_A_BASE);
73 GPIO_setAsPeripheralModuleFunctionOutputPin(
86 Comp_B_initParam
param = {0};
87 param.positiveTerminalInput = COMP_B_INPUT0;
88 param.negativeTerminalInput = COMP_B_VREF;
89 param.powerModeSelect = COMP_B_POWERMODE_NORMALMODE;
90 param.outputFilterEnableAndDelayLevel = COMP_B_FILTEROUTPUT_DLYLVL1;
91 param.invertedOutputPolarity = COMP_B_NORMALOUTPUTPOLARITY;
92 Comp_B_init(COMP_B_BASE, &
param);
101 Comp_B_configureReferenceVoltageParam refVoltageParam = {0};
102 refVoltageParam.supplyVoltageReferenceBase = COMP_B_VREFBASE2_0V;
103 refVoltageParam.lowerLimitSupplyVoltageFractionOf32 = 32;
104 refVoltageParam.upperLimitSupplyVoltageFractionOf32 = 32;
105 refVoltageParam.referenceAccuracy = COMP_B_ACCURACY_STATIC;
106 Comp_B_configureReferenceVoltage(COMP_B_BASE, &refVoltageParam);
109 Comp_B_enable(COMP_B_BASE);
115 __bis_SR_register(LPM4_bits);
MPU_initThreeSegmentsParam param